<html>
<head>
	<script language="JavaScript" src="sort.js"></script> 
</head>
<body>

<table id='testTable' border='1'>
	<tr>
		<td><a href='#' onclick='tableData.sort("0", "int");'>Column 1</a></td>
		<td><a href='#' onclick='tableData.sort("1", "string");'>Column 2</a></td>
	</tr>
	<tr>
		<td>1</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>03</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>2</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>4</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>5</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>6</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>7</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>8</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>9</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>10</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>11</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>12</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>13</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>14</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>15</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>16</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>17</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>18</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>19</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>20</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>21</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>22</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>23</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>24</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>25</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>26</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>27</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>28</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>29</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>30</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>31</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>32</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>33</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>34</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>35</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>36</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>37</td>
		<td>XYZ</td>
	</tr>
	<tr>
		<td>38</td>
		<td>PQR</td>
	</tr>
	<tr>
		<td>39</td>
		<td>ABC</td>
	</tr>
	<tr>
		<td>40</td>
		<td>ABC</td>
	</tr>
</table>
<script>
//testTable is the id of the table and 1 row has headings which need not be sorted and has to be skipped
tableData.setData('testTable', 1);
</script>
</body>
</html>